package com.design.pattern.delegate;

/**
 * create by yufeng on 2021/7/5 14:43
 */
public class Test {
    public static void main(String[] args) {
        Boss boss = new Boss();
        boss.commad("java", new LeaderDelegate());
        boss.commad("C++", new LeaderDelegate());
        boss.commad("web", new LeaderDelegate());
        boss.commad("c", new LeaderDelegate());
    }
}
